package com.huihui.network;

/**
 * Created by daimeng on 2018/8/8 10:35.
 */

public class HttpContants {

//    public static final String BASE_URL = "http://2j11c28839.imwork.net:9988";
//    public static final String BASE_URL = "http://183.15.178.247:9988";
//    public static final String BASE_URL = "http://api.haojiabyd.com";
    public static final int SUCCESS_CODE = 10000;
    public static final int PARAM_ERROR = 10001;
    public static final int SYSTEM_ERROR = 10002;
    public static final int DATA_ERROR = 20001;
    public static final int ACTION_ERROR = 20002;
    public static final int page_num = 10;//10 每页数据
    public static final String STATE = "state";
    public static final String MSG = "msg";
    public static final String DATA = "data";
    public static final String ERROR_CODE = "error_code";


    public static final String getStsToken = "/sts/getStsToken";

    /*--------------------------用户模块----------------------------------*/
    //用户注册
    public static final String register = "/register";

    //发送手机短信验证码
    public static final String sendSmsCode = "/sendSmsCode";

    //绑定手机号-提交
    public static final String bindTelhone = "/user/bindTelphone";

    //用户登录（账号密码/手机验证码）
    public static final String login = "/login";

    //第三方授权登录保存用户信息
    public static final String saveUserByPlatform = "/saveUserByPlatform";

    //第三方平台登录获取用户信息
    public static final String getUserByUnionid = "/user/getUserByUnionid";

    //（忘记密码）
    public static final String forgetPsw = "/forgetPassword";

    //举报
    public static final String addReport = "/report/reportInfo";
    //重置密码
    public static final String resetPassword = "/user/resetPassword";

    //个人资料-修改
    public static final String updateUser = "/user/updateUser";

    //我的点赞/收藏
    public static final String collection_list = "/user/collection/list";

    //我的消息-列表
    public static final String msg_list = "/user/msg/list";

    //我的消息-修改消息为已读状态
    public static final String msg_read = "/user/msg/read";

    //意见反馈
    public static final String uploadFeedback = "/user/uploadFeedback";

    /**
     * 业务模块
     */

    //最新/超值-获取商品列表 -F
    public static final String product_list = "/product/list";
    public static final int area_id_new = 1;//1 最新
    public static final int area_id_ship = 0;//0 超值


    //最新/超值-搜索 -F
    public static final String search = "/product/search";

    //最新/超值-获取商品评论 -F
    public static final String product_getComment = "/product/getComment";

    //最新/超值-获取商品详情
    public static final String product_getByid = "/product/getByid";

    //最新/超值-新增评论 -F
    public static final String product_addComment = "/product/addComment";

    //短视频-获取短视频（带搜索）-f
    public static final String video_list = "/video/list";

    //短视频-获取视频评论 -f
    public static final String video_getComment = "/video/getComment";

    //短视频-新增评论 -f
    public static final String video_addComment = "/video/addComment";

    //讨论区-发布文章
    public static final String publish = "/article/publish";

    //讨论区-获取文章列表(带搜索) -f
    public static final String article_list = "/article/list";

    //讨论区-获取文章评论 -f
    public static final String article_getComment = "/article/getComment";

    //讨论区-获取文章详情 -f
    public static final String article_getById = "/article/getById";
    public static final String video_getById = "/video/getVideoById";

    //讨论区-新增评论 -i
    public static final String article_addComment = "/article/addComment";

    //加入收藏/点赞 -F
    public static final String addCollection = "/collection/addCollection";
    public static final String removeCollection = "/collection/remove";

    //获取分享连接
    public static final String SHARE_URL = "/user/getShareUrl";
    //获取子评论列表
    public static final String get_childCommentList = "/getAllSonComment";


}
